import api from './api'

/**
 * 获得banner列表 
 */
export function shopNearby(data) {
  return api.get('/store/nearby', data, { login: false })
}
/**
 * 获取首页信息
 */
export function menuGoods(data) {
  return api.get('/product/products', data, { login: false })
}

/**
 * 获取xxss首页信息
 */
export function getGoodsType(data) {
  return api.get('/business/dishesType/list', data, { login: false })
}

export function getGoodsByRant(data) {
  return api.get('/business/dishes/list', data, { login: false })
}
export function addDishes(data) {
  return api.post('/business/dishes', data, { login: false })
}
export function queryGoodsOne(data) {
  return api.get('/order/dishes/getInfoAll', data, { login: false })
}
export function queryGoodAll(data) {
  return api.get('/order/dishes/getAppAll', data, { login: false })
}
export function queryShopList(data) {
  return api.get('/order/dishes/dishesListByParam', data, { login: false })
}
export function getShopIfoBytel(data) {
  return api.get('/business/userShop/listByParam', data, { login: false })
}
export function queryShopOne(data) {
  return api.get('/business/userShop/'+data, { login: false })
}